﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="RadioStationServiceMock.cs" company="">
//   
// </copyright>
// <summary>
//   The radio station service mock.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace TinyRadio.UserInterface.Services
{
    using System.Collections.Generic;

    using TinyRadio.Models;

    /// <summary>The radio station service mock.</summary>
    public class RadioStationServiceMock : IRadioStationService
    {
        #region Fields

        /// <summary>The _radio stations.</summary>
        private readonly IEnumerable<RadioStation> _radioStations;

        #endregion

        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="RadioStationServiceMock"/> class.</summary>
        public RadioStationServiceMock()
        {
            this._radioStations = new List<RadioStation>
                                      {
                                          new RadioStation
                                              {
                                                  Id = "1", 
                                                  Name = "קול הקמפוס", 
                                                  Url =
                                                      @"mms://live3.mediacast.co.il/106fm"
                                              }, 
                                          new RadioStation
                                              {
                                                  Id = "2", 
                                                  Name = "גלגל''צ", 
                                                  Url =
                                                      @"http://radio.glz.co.il:8000/galgalatz"
                                              }, 
                                          new RadioStation
                                              {
                                                  Id = "3", 
                                                  Name = "רשת ג", 
                                                  Url =
                                                      @"http://switch3.castup.net/cunet/gm.asp?ai=31&ar=Gimel"
                                              }, 
                                          new RadioStation
                                              {
                                                  Id = "4", 
                                                  Name = "רשת ג", 
                                                  Url =
                                                      @"http://switch3.castup.net/cunet/gm.asp?ai=31&ar=Gimel"
                                              }, 
                                          new RadioStation
                                              {
                                                  Id = "5", 
                                                  Name = "103FM", 
                                                  Url =
                                                      @"http://switch3.castup.net/cunet/gm.asp?ai=546&ar=Live01"
                                              }
                                      };
        }

        #endregion

        #region Public Methods and Operators

        /// <summary>The get radio stations.</summary>
        /// <returns>The <see cref="IEnumerable"/>.</returns>
        public IEnumerable<RadioStation> GetRadioStations()
        {
            return this._radioStations;
        }

        #endregion
    }
}